package redis

import "time"

func SendSmsCode(mobile, code, sut string) error {
	key := "mobile:" + mobile + "_" + sut
	return redisClient.Set(key, code, time.Minute*1).Err()
}
func SendSms(mobile, code string) error {
	key := "mobile:" + mobile
	return redisClient.Set(key, code, time.Minute*10).Err()
}
